package main.hooks;

import java.awt.Point;

import main.EntityDef;
import main.NPC;
import main.bots.Methods;

public class RSNPC {
	
	int x;
	int y;
	String name;
	NPC npc;
	int id;
	int slotId;
	public EntityDef getEntityDef() {
		return npc.desc;
	}
	public RSNPC(NPC npc, int slotId) {
		this.slotId = slotId;
		this.npc = npc;
	}
	public int getNpcAnimation() {
		return getNpc().anim;
	}
	public boolean npcInCombat() {
		return getNpc().anim != -1;
	}
	public long getId() {
		return npc.desc.type;
	}
	public NPC getNpc() {
		return npc;
	}
	public String getName() {
		return getNpc().desc.name;
	}
	public int getSlotId() {
		return slotId;
	}
	public boolean isValid() {
		return npc.isVisible();
	}
	public RSTile getLocation() {
		return new RSTile(getX(), getY());
	}
	public int getY() {
		return getNpc().smallY[0] + Methods.getClientToUse().baseY;
	}
	public int getX() {
		return getNpc().smallX[0] + Methods.getClientToUse().baseX;
	}
	
	
}
